package com.byx.chatserver.service;

import com.byx.chatserver.entity.MailType;
import org.springframework.stereotype.Service;

/**
 * IVerificationCodeService
 *
 * @author Superb
 * @date 2021/3/22 22:19
 */
@Service
public interface IVerificationCodeService {
    boolean sendVerificationCode(String number, MailType mailType);
    boolean isCorrectCode(String number,String code);
    String getRandNum(int length);
}
